﻿<%@ Page Title="OrderManage" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="OrderManage.aspx.cs" Inherits="OrderManage" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        订单管理
    </h2>
    <p>
    未处理订单：
    </p>
    <p>
        <asp:DataGrid  AutoGenerateColumns="false" ID="UndealOrder" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        onitemcommand="UndealOrder_ItemCommand">
        <Columns>
            <asp:BoundColumn DataField="UserName" HeaderText="用户名"></asp:BoundColumn>
            <asp:BoundColumn DataField="OrderDate" HeaderText="订单日期"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipAddress" HeaderText="送货地址"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipName" HeaderText="收件人"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipPhone" HeaderText="联系电话"></asp:BoundColumn>
            <asp:ButtonColumn ButtonType="PushButton" CommandName="Deal" Text="处理订单"></asp:ButtonColumn>
            <asp:ButtonColumn ButtonType="PushButton" CommandName="Delete" Text="删除订单"></asp:ButtonColumn>        
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <ItemStyle ForeColor="#000066" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" 
            Mode="NumericPages" />
        <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />      
    </asp:DataGrid>
    </p>
    <p>
    已处理订单：
    </p>
    <p>
         <asp:DataGrid  AutoGenerateColumns="False" ID="DealOrder" runat="server" BackColor="White" 
        BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" >
        <Columns>
            <asp:BoundColumn DataField="UserName" HeaderText="用户名"></asp:BoundColumn>
            <asp:BoundColumn DataField="OrderDate" HeaderText="订单日期"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipAddress" HeaderText="送货地址"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipName" HeaderText="收件人"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipPhone" HeaderText="联系电话"></asp:BoundColumn>     
        </Columns>
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
        <ItemStyle ForeColor="#330099" BackColor="White" />
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />      
        </asp:DataGrid>
    </p>
    <p>
    已删除订单：
    </p>
    <p>
        <asp:DataGrid  AutoGenerateColumns="False" ID="DeletedItem" runat="server" BackColor="White" 
        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        ForeColor="Black" 
            GridLines="Vertical">
            <AlternatingItemStyle BackColor="White" />
        <Columns>
            <asp:BoundColumn DataField="UserName" HeaderText="用户名"></asp:BoundColumn>
            <asp:BoundColumn DataField="OrderDate" HeaderText="订单日期"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipAddress" HeaderText="送货地址"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipName" HeaderText="收件人"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShipPhone" HeaderText="联系电话"></asp:BoundColumn>     
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <ItemStyle BackColor="#F7F7DE" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" 
                Mode="NumericPages" />
        <SelectedItemStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />      
        </asp:DataGrid>
    </p>
</asp:Content>
